package may.qf.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.stereotype.Component;

import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Component
public class Emp {
    private Integer empNo;
    private String ename;
    private String job;
    private Integer mgr;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date hireDate;
    private Double sal;
    private Double comm;
    private Integer deptNo;
    private Date createTime;
    private Dept empDept;
    private Emp empMgr;
}
